<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>jquery使用</title>
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>
        <script>
        	function showImg(){
        		$("#myimg").show();
        		//document.getElementById("myimg")
        	}
        	function hideImg(){
        		$("#myimg").hide();
        		//document.getElementById("myimg")
        	}
        </script>
	</head>
	<body>
		<img id="myimg" src="img/logo.png"/>
		<button onclick="showImg()">显示图片</button>
		<button onclick="hideImg()">关闭图片</button>
	</body>
</html>
